#!/usr/bin/env python
#+_+ coding:utf-8 +_+
import urllib2, urllib
import xml.etree.ElementTree as ET
 
data = """
 <xml>
 <ToUserName><![CDATA[gh_b137c811bf9a]]></ToUserName>
 <FromUserName><![CDATA[oO1a2jrX4Jz1RVqHi03EW6QdMH9g]]></FromUserName> 
 <CreateTime>1348831860</CreateTime>
 <MsgType><![CDATA[text2]]></MsgType>
 <Content><![CDATA[thisest]]></Content>
 <MsgId><test>1234567890123456</test></MsgId>
 </xml>
"""

rootTag = ET.fromstring(data)
for childTag  in rootTag:
    print childTag.tag +":"+str(childTag.text)




